
use std::any::type_name;
//打印变量类型
fn print_type_of<T>(_: &T) {
    println!("The type is: {}", type_name::<T>());
}

fn main() {
    let number = String::from("123");
    print_type_of(&number);
}


